package chuangyi.com.org.ViewModel;

import android.content.Context;
import android.databinding.Bindable;
import android.graphics.Color;

import java.util.Date;

import chuangyi.com.org.DOMIHome.R;
import chuangyi.com.org.DOMIHome.BR;
import chuangyi.com.org.DOMIHome.adapter.BindingListItem;

/**
 * Created by zxh on 16/11/25.
 */

public class BalanceItem extends BindingListItem {
    private String type;
    private Date date;
    private double value;

    @Bindable
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Bindable
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Bindable
    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
        notifyPropertyChanged(BR.value);
    }

    public BalanceItem(Context context){
        super(context, R.layout.i_jifen_detail);
    }
}
